using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DevExpress.Utils.Serializing;
using DevExpress.XtraGrid.Views.Base;
using DevExpress.XtraGrid.Views.Grid;

namespace Comteck.Winforms.Controls.Components {

  /// <summary>
  /// 自定义 gridcontrol的 GridOptionsView
  /// </summary>
  public class CustomGridOptionsView : GridOptionsView {
    /// <summary>
    /// 是否显示过滤面板
    /// </summary>
    [DefaultValue(ShowFilterPanelMode.Default)]
    [XtraSerializableProperty]
    public override ShowFilterPanelMode ShowFilterPanelMode { get; set; } = ShowFilterPanelMode.Default;

    /// <summary>
    /// 是否显示分组信息
    /// </summary>
    [DefaultValue(false)]
    [XtraSerializableProperty]
    public override bool ShowGroupPanel { get; set; } = false;

    /// <summary>
    /// 宽度是否自动调整
    /// </summary>
    [DefaultValue(false)]
    [XtraSerializableProperty]
    public override bool ColumnAutoWidth { get; set; } = false;

    /// <summary>
    /// 是否启用偶数行外观
    /// </summary>
    [DefaultValue(true)]
    [XtraSerializableProperty]
    public override bool EnableAppearanceEvenRow { get; set; } = true;

    /// <summary>
    /// 是否启用奇数行外观
    /// </summary>
    [DefaultValue(true)]
    [XtraSerializableProperty]
    public override bool EnableAppearanceOddRow { get; set; } = true;

  }

}
